{/* LAYOUT模板 */}
	<layout name="layout"/>
{/* LAYOUT模板 */}

{/* Import Js,Css */}	
	<css href="__PUBLIC__/Css/admin/common.css"/>
	<css href="__PUBLIC__/Plugs/uploadHelper/css/default.css"/>	
	<js href="__PUBLIC__/Plugs/uploadHelper/swfupload/swfupload.js"/>
	<js href="__PUBLIC__/Plugs/uploadHelper/multiinstancedemo/js/swfupload.queue.js"/>
	<js href="__PUBLIC__/Plugs/uploadHelper/multiinstancedemo/js/fileprogress.js"/>
	<js href="__PUBLIC__/Plugs/uploadHelper/multiinstancedemo/js/handlers.js"/>
	
	<css href="__PUBLIC__/Css/jquery-ui.css"/>
	<js href="__PUBLIC__/Js/core/jquery-ui.1.10.4.js"/>
	<js href="__PUBLIC__/Js/Function.js" />
	<js href="__PUBLIC__/Js/FileController.js" />
	<js href="__PUBLIC__/Js/core/plugins.js"/>
{/* Import Js,Css */}

<style>
#tab{margin-left:2px; margin-bottom:-2px;}#tab li{border:1px solid #b5e2f3;border-bottom:0px;float:left;width:100px;height:25px;margin:0 -1px;background:#F1FEF3;padding:9px 0 0 0;text-align:center;color:#33a3dc;cursor:pointer;}#tab ul{width:800px;height:36px;border-bottom:1px solid #b5e2f3;/*border-bottom:1px solid #b5e2f3;*/}#tab #selected{background:#FFF!important;border-bottom:2px solid #FFF!important;}ul{margin:-1px;}#cate1,#cate2, #cate3, #cate4, #cate5{clear:both;height:300px;background:#FFFFFF;width:800px;height:100px;padding:25px;height:auto;border:1px solid #b5e2f3;}
</style>

<!-- [position] -->
	<include file="Template:position"/>
<!-- [position] -->

<!-- [气泡提示框插件HTML代码] -->
	<include file="Core:QTip"/>
<!-- [气泡提示框插件HTML代码] -->

<form method="post" action="__APP__/Course/updateCourseOk" enctype="multipart/form-data">
	<div class="mauto" style="width:80%">
		<div id="tab" >
			<ul>
				<li tar="cate1" id="selected">{$lang.basic_info}</li>
				<li tar="cate2">{$lang.album}</li>
				<li tar="cate3">课堂简介</li>
			</ul>
		</div>
		<div>
			<div id="cate1" style="display:block;">
				<include file="Template:update_tab1"/>
			</div>
			<div id="cate2" style="display:none;">
				<include file="Template:update_tab2"/>
			</div>
			<div id="cate3" style="display:none;">
				<include file="Template:update_tab4"/>	 
			</div>
		</div>
		<div class="submit" style="text-align:center; margin-bottom:100px;">
			<input type="hidden" id="course_id" name="id" value="{$course.id}"/>
			<input type="submit"  value="{$lang.submit_text}"/>
			<input type="button"  value="{$lang.reset_text}"/>			
		</div>
	</div>
</form>

<script>
	/**
	* 考虑到tab和pane有可能被动态的添加和删除，
	* 所以每次都废点时间去查找先前被激活的tab
	*/
	var tab = function(tabId,activeId){
	$("#"+tabId).delegate("li:not(#"+activeId+")","click",function(){
	$("#"+$("#"+activeId).attr("tar")).css("display","none");
	$("#"+activeId).removeAttr("id");
	 
	$(this).attr("id",activeId);
	$("#"+$(this).attr("tar")).css("display","block");
	});
	};
tab("tab","selected");
</script>














